package au.com.handsunited.dao.hibernate;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import au.com.handsunited.dao.ServiceCategoryDAO;
import au.com.handsunited.model.servicecategory.ServiceCategory;

/**
 * @author Arun Chandrasekhar
 *
 */
public class ServiceCategoryDAOHibernate extends GenericDAOHibernate<ServiceCategory, Long>
		implements ServiceCategoryDAO {


	private static Logger logger = LoggerFactory.getLogger(ServiceCategoryDAOHibernate.class);


	/**
	 *
	 */
	public ServiceCategoryDAOHibernate() {

	}

	/**
	 * @see au.com.handsunited.dao.ServiceCategoryDAO#getAllServiceCategories()
	 */
	@Override
	public List<ServiceCategory> getAllServiceCategories() {
		List<ServiceCategory> serviceCategories =
				getHibernateTemplate().find("from ServiceCategory");
		return serviceCategories;
	}


}
